import type { RentInfoDataType, WorkbenchDataType } from "@/types/workbench"
import { myGet } from "@/utils/reuqest"

// 获取基本数据
export const getWorkbenchAPI = () => {
  return myGet<WorkbenchDataType>('/home/workbench/info')
}

// 获取临期合同数据
export const getRentInfoAPI = (params: { page: number, pageSize: number }) => {
  return myGet<RentInfoDataType>('/home/workbench/rentInfo', params)
}
